package com.gxa.modules.community.service.impl;

import com.gxa.modules.community.entity.MonthManage;
import com.gxa.modules.community.entity.MonthManageAU;
import com.gxa.modules.community.mapper.MonthManageMapper;
import com.gxa.modules.community.service.MonthMangeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class MonthManageServiceImpl implements MonthMangeService {
    @Autowired
    private MonthManageMapper monthManageMapper;
    @Override
    public List<MonthManage> queryByPage(Map<String, Object> params) {
        String monthlyCardStatus = (String)params.get("monthlyCardStatus");
        String monthlyCardNumber = (String)params.get("monthlyCardNumber");
        String communityId = (String)params.get("communityId");
        List<MonthManage> monthManages=this.monthManageMapper.queryByPage(monthlyCardStatus,monthlyCardNumber,communityId);
        return monthManages;
    }

    @Override
    public void monthMangeAdd(MonthManageAU monthManageAU) {
        this.monthManageMapper.monthMangeAdd(monthManageAU);
    }

    @Override
    public void monthMangeUpdate(MonthManageAU monthManageAU) {
        this.monthManageMapper.monthMangeUpdate(monthManageAU);
    }

    @Override
    public void monthMangeDelete(Integer id) {
        this.monthManageMapper.monthMangeDelete(id);
    }

    @Override
    public void monthMangeDeleteIds(List<Integer> ids) {
        this.monthManageMapper.monthMangeDeleteIds(ids);
    }
}
